import Mock from 'mockjs';
let Random=Mock.Random


Random.extend({
    xz: function(date) {
        var constellations = ['白羊座', '金牛座', '双子座', '巨蟹座', '狮子座', '处女座', '天秤座', '天蝎座', '射手座', '摩羯座', '水瓶座', '双鱼座']
        return this.pick(constellations)
    }
})


Mock.mock('http://www.baidu.con/api/prolist',{
    'list|5-10':[
        {
            'id|+1':1,
            "name":'@cname()',
            "img":"@image('200x200')",
            "xz":"@xz()"
        }
    ]
})                                                                                       